package him.action.factory;

import him.action.Action;
import him.action.ActionFactory;
import him.action.member.MemberInsertAction;

public class MemberActionFactory implements ActionFactory {
	private static MemberActionFactory factory;
	
	public static MemberActionFactory getInstance(){
		if (factory==null) {
			factory = new MemberActionFactory();
		}
		return factory;
	}
	@Override
	public Action getAction(String command) {
		Action action = null;
		if (command.equalsIgnoreCase("memberinsert")) {
			action = new MemberInsertAction();
		}
		return action;
	}

}
